export default{
    playList (state) {
       return state.playList.length?state.playList:[]
    },
    playIndex (state) {
       return state.playIndex||'0'
    },
    curSongInfo (state) {
        return state.playList[state.playIndex]||null//返回playlist里对应索引的包含歌曲信息的对象 
    },
    isPlayed (state) {
        return state.isPlayed
    },
    isLogin(state){
        return state.isLogin
    },
    userInfo(state){
        return state.userInfo
    },
    loginDialogVisible(state){
        return state.loginDialogVisible
    }
}